class MessageListEntity {
	int code;
	MessageListData data;
	String message;

	MessageListEntity({this.code, this.data, this.message});

	MessageListEntity.fromJson(Map<String, dynamic> json) {
		code = json['code'];
		data = json['data'] != null ? new MessageListData.fromJson(json['data']) : null;
		message = json['message'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['code'] = this.code;
		if (this.data != null) {
      data['data'] = this.data.toJson();
    }
		data['message'] = this.message;
		return data;
	}
}

class MessageListData {
	List<MessageListDataRe> res;
	String total;

	MessageListData({this.res, this.total});

	MessageListData.fromJson(Map<String, dynamic> json) {
		if (json['res'] != null) {
			res = new List<MessageListDataRe>();(json['res'] as List).forEach((v) { res.add(new MessageListDataRe.fromJson(v)); });
		}
		total = json['total'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		if (this.res != null) {
      data['res'] =  this.res.map((v) => v.toJson()).toList();
    }
		data['total'] = this.total;
		return data;
	}
}

class MessageListDataRe {
	String sendTime;
	String remark;
	String id;
	String type;
	String content;

	MessageListDataRe({this.sendTime, this.remark, this.id, this.type, this.content});

	MessageListDataRe.fromJson(Map<String, dynamic> json) {
		sendTime = json['send_time'];
		remark = json['remark'];
		id = json['id'];
		type = json['type'];
		content = json['content'];
	}

	Map<String, dynamic> toJson() {
		final Map<String, dynamic> data = new Map<String, dynamic>();
		data['send_time'] = this.sendTime;
		data['remark'] = this.remark;
		data['id'] = this.id;
		data['type'] = this.type;
		data['content'] = this.content;
		return data;
	}
}
